from rest_framework.routers import DefaultRouter
from areas.views import AreasViewSet

urlpatterns = [

]

router = DefaultRouter()
# areas是路径中公共的部分，会自动拼接/号，AreasViewSet是视图名称，不写as_view(),base_name可以不写
router.register('areas', AreasViewSet, base_name='areas')
urlpatterns += router.urls
